package gamegui;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.UIManager;

import java.awt.Color;
import java.awt.GridLayout;

public class GamePanel extends JPanel {

	/**
	 * Create the panel.
	 */
	JButton caroButton[][];

	public GamePanel(int x,int y) {
		try {
//			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			
		} catch (Exception e) {
			e.printStackTrace();
		}
		setLayout(new GridLayout(20, 20, 0, 0));
		setSize(660, 600);
		caroButton = new JButton[20][20];
		for (int i = 0; i < 20; i++) {
			for (int j = 0; j < 20; j++) {
				caroButton[i][j] = new JButton();
				caroButton[i][j].setBackground(Color.WHITE);
				this.add(caroButton[i][j]);
				
			}
		}
		
	}
}
